package com.piesat.quake.business.device.mqtt.convert;

import com.piesat.quake.business.device.mqtt.param.ParseParam;

import io.netty.buffer.ByteBuf;

/**
 * 数据转换器
 *
 * @author Gersy
 * @date 2023/3/10
 * @since 1.0
 */
public interface Convert {

    Object read(ByteBuf byteBuf, ParseParam param);

    void write(ByteBuf byteBuf, Object value, ParseParam param);
}
